# Contributor: Timo Teräs <timo.teras@iki.fi>
# Maintainer: Timo Teräs <timo.teras@iki.fi>
pkgname=lua-resty-openidc
pkgver=1.7.5
pkgrel=1
pkgdesc="OpenID Connect library for the nginx lua module"
url="https://github.com/zmartzone/$pkgname"
# ppc64le, riscv64, loongarch64 blocked by luajit -> lua-resty-string
arch="noarch !ppc64le !riscv64 !loongarch64"
license="BSD-2-Clause"
source="$pkgname-$pkgver.tar.gz::https://github.com/zmartzone/$pkgname/archive/v$pkgver.tar.gz
add-support-form-post-response.patch"
depends="lua-cjson lua-resty-string lua-resty-http lua-resty-session lua-resty-jwt"
options="!check"

package() {
	mkdir -p "$pkgdir/usr/share/lua/common"
	cp -r ./lib/resty "$pkgdir/usr/share/lua/common"
}

sha512sums="
d483efff27a0566ffadeb8f0da0df0147e9510bcfd5f4d295c7ce11925af882c9604e8d72f676bd9d6b6ded83c2c9f65ff958605856a8d218d4992136f0f4577  lua-resty-openidc-1.7.5.tar.gz
9c8ed18af704af9996bbd62bd9c0712572cc66f76b035b59b594c0cb41855e6cc26fc3b57ffdbcf935dd949dafa9404ac33e8eeac54e94f4796cf89cc93af0fe  add-support-form-post-response.patch
"
